.class public Lcom/xingbook/park/activity/OpenBookAct;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Ljava/lang/String;

.field private b:Ljava/lang/String;

.field private c:Lcom/xingbook/ui/ad;

.field private d:Lcom/xingbook/ui/ad;

.field private e:Landroid/os/Handler;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    new-instance v0, Lcom/xingbook/park/activity/au;

    invoke-direct {v0, p0}, Lcom/xingbook/park/activity/au;-><init>(Lcom/xingbook/park/activity/OpenBookAct;)V

    iput-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->e:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->b:Ljava/lang/String;

    return-object v0
.end method

.method public static a()V
    .locals 2

    invoke-static {}, Lcom/xingbook/park/activity/ReadingAct;->a()Lcom/xingbook/park/activity/ReadingAct;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-static {}, Lcom/xingbook/park/activity/ReadingAct;->a()Lcom/xingbook/park/activity/ReadingAct;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/xingbook/park/activity/ReadingAct;->a(I)V

    :cond_0
    invoke-static {}, Lcom/xingbook/park/activity/FCViewAct;->a()Lcom/xingbook/park/activity/FCViewAct;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-static {}, Lcom/xingbook/park/activity/FCViewAct;->a()Lcom/xingbook/park/activity/FCViewAct;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/activity/FCViewAct;->c()V

    :cond_1
    invoke-static {}, Lcom/xingbook/park/activity/BCViewAct;->a()Lcom/xingbook/park/activity/BCViewAct;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/xingbook/park/activity/BCViewAct;->a()Lcom/xingbook/park/activity/BCViewAct;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/park/activity/BCViewAct;->b()V

    :cond_2
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Z)V
    .locals 2

    invoke-static {}, Lcom/xingbook/park/activity/OpenBookAct;->a()V

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/xingbook/park/activity/OpenBookAct;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v1, "com.xingbook.park.BOOK_ID"

    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string v1, "com.xingbook.park.TO_STORE"

    invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/park/activity/OpenBookAct;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    iput-object p1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const-string v1, "\u6211\u77e5\u9053\u4e86"

    iput-object v1, v0, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const v1, -0x33ffec

    iput v1, v0, Lcom/xingbook/ui/ad;->i:I

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const v1, -0xff9934

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setHilighted(I)V

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->invalidate()V

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v0}, Lcom/xingbook/ui/ad;->invalidate()V

    return-void
.end method

.method static synthetic b(Lcom/xingbook/park/activity/OpenBookAct;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->a:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic b(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)Ljava/lang/String;
    .locals 1

    invoke-direct {p0, p1}, Lcom/xingbook/park/activity/OpenBookAct;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private b(Ljava/lang/String;)Ljava/lang/String;
    .locals 5

    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1}, Lorg/json/JSONArray;-><init>()V

    :try_start_0
    new-instance v0, Ljava/io/File;

    sget-object v2, Lcom/xingbook/c/c;->F:Ljava/lang/String;

    invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_1

    new-instance v2, Ljava/lang/StringBuffer;

    invoke-direct {v2}, Ljava/lang/StringBuffer;-><init>()V

    new-instance v3, Ljava/io/BufferedReader;

    new-instance v4, Ljava/io/FileReader;

    invoke-direct {v4, v0}, Ljava/io/FileReader;-><init>(Ljava/io/File;)V

    invoke-direct {v3, v4}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V

    :goto_0
    invoke-virtual {v3}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_0

    invoke-virtual {v3}, Ljava/io/BufferedReader;->close()V

    new-instance v0, Lorg/json/JSONArray;

    invoke-virtual {v2}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v2}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1

    :goto_1
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    :try_start_1
    const-string v2, "orfId"

    invoke-virtual {v1, v2, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "time"

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-virtual {v1, v2, v3, v4}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;

    invoke-virtual {v0, v1}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_2

    :goto_2
    invoke-virtual {v0}, Lorg/json/JSONArray;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0

    :cond_0
    :try_start_2
    invoke-virtual {v2, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    move-object v0, v1

    goto :goto_1

    :catch_1
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    :cond_1
    move-object v0, v1

    goto :goto_1

    :catch_2
    move-exception v1

    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_2
.end method

.method static synthetic c(Lcom/xingbook/park/activity/OpenBookAct;)Landroid/os/Handler;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/park/activity/OpenBookAct;->e:Landroid/os/Handler;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/park/activity/OpenBookAct;Ljava/lang/String;)Z
    .locals 1

    invoke-direct {p0, p1}, Lcom/xingbook/park/activity/OpenBookAct;->c(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method

.method private c(Ljava/lang/String;)Z
    .locals 2

    new-instance v0, Ljava/io/File;

    sget-object v1, Lcom/xingbook/c/c;->F:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    :cond_0
    if-eqz p1, :cond_1

    :try_start_0
    invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z

    new-instance v1, Ljava/io/FileWriter;

    invoke-direct {v1, v0}, Ljava/io/FileWriter;-><init>(Ljava/io/File;)V

    invoke-virtual {v1, p1}, Ljava/io/FileWriter;->write(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/io/FileWriter;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    const/4 v0, 0x1

    :goto_0
    return v0

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u661f\u5b9d\u4e66-\u6253\u5f00"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/xingbook/park/activity/OpenBookAct;->setResult(I)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/OpenBookAct;->finish()V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 18

    invoke-super/range {p0 .. p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/activity/OpenBookAct;->getIntent()Landroid/content/Intent;

    move-result-object v5

    const-string v1, "com.xingbook.park.BOOK_ID"

    invoke-virtual {v5, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->a:Ljava/lang/String;

    const-string v1, "com.xingbook.park.BOOKMARK"

    invoke-virtual {v5, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    move-object/from16 v0, p0

    iput-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->b:Ljava/lang/String;

    const-string v1, "com.xingbook.park.TO_STORE"

    const/4 v2, 0x0

    invoke-virtual {v5, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v6

    const-string v1, "com.xingbook.park.IS_COURSE"

    const/4 v2, 0x0

    invoke-virtual {v5, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v3

    const-string v1, "com.xingbook.park.EXTRA_FORCE_HIDELEVEL"

    const/4 v2, 0x0

    invoke-virtual {v5, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    invoke-static {v1}, Lcom/xingbook/c/e;->c(I)V

    invoke-static/range {p0 .. p0}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v1

    const/high16 v2, 0x4416

    mul-float/2addr v2, v1

    invoke-static {v2}, Ljava/lang/Math;->round(F)I

    move-result v2

    const/high16 v4, 0x43c8

    mul-float/2addr v4, v1

    invoke-static {v4}, Ljava/lang/Math;->round(F)I

    move-result v4

    invoke-static/range {p0 .. p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v7

    sub-int/2addr v7, v2

    div-int/lit8 v7, v7, 0x2

    invoke-static/range {p0 .. p0}, Lcom/xingbook/c/n;->d(Landroid/app/Activity;)I

    move-result v8

    sub-int/2addr v8, v4

    div-int/lit8 v8, v8, 0x2

    const/high16 v9, 0x42c8

    mul-float/2addr v9, v1

    invoke-static {v9}, Ljava/lang/Math;->round(F)I

    move-result v9

    const/high16 v10, 0x41a0

    mul-float/2addr v10, v1

    invoke-static {v10}, Ljava/lang/Math;->round(F)I

    move-result v10

    const/high16 v11, 0x41a0

    mul-float/2addr v11, v1

    invoke-static {v11}, Ljava/lang/Math;->round(F)I

    move-result v11

    new-instance v12, Lcom/xingbook/ui/XbLayout;

    move-object/from16 v0, p0

    invoke-direct {v12, v0}, Lcom/xingbook/ui/XbLayout;-><init>(Landroid/content/Context;)V

    new-instance v13, Lcom/xingbook/ui/ad;

    move-object/from16 v0, p0

    invoke-direct {v13, v0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    const/4 v14, -0x1

    iput v14, v13, Lcom/xingbook/ui/ad;->i:I

    const/high16 v14, 0x4120

    iput v14, v13, Lcom/xingbook/ui/ad;->j:F

    const/4 v14, 0x3

    const/4 v15, 0x1

    const/16 v16, 0x1

    const/high16 v17, -0x100

    invoke-virtual/range {v13 .. v17}, Lcom/xingbook/ui/ad;->b(IIII)V

    add-int v14, v7, v2

    add-int v15, v8, v4

    invoke-virtual {v13, v7, v8, v14, v15}, Lcom/xingbook/ui/ad;->layout(IIII)V

    invoke-virtual {v12, v13}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v13, Lcom/xingbook/ui/ad;

    move-object/from16 v0, p0

    invoke-direct {v13, v0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    move-object/from16 v0, p0

    iput-object v13, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    const-string v14, "\u6b63\u5728\u6253\u5f00\u661f\u5b9d\u4e66..."

    iput-object v14, v13, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    const/high16 v14, 0x4238

    mul-float/2addr v14, v1

    iput v14, v13, Lcom/xingbook/ui/ad;->c:F

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    const v14, -0x99999a

    iput v14, v13, Lcom/xingbook/ui/ad;->b:I

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    const/16 v14, 0x11

    iput v14, v13, Lcom/xingbook/ui/ad;->d:I

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    const/4 v14, 0x3

    const/4 v15, 0x1

    const/16 v16, 0x1

    const/high16 v17, -0x100

    invoke-virtual/range {v13 .. v17}, Lcom/xingbook/ui/ad;->b(IIII)V

    move-object/from16 v0, p0

    iget-object v13, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    add-int v14, v7, v2

    sub-int/2addr v4, v9

    sub-int/2addr v4, v11

    add-int/2addr v4, v8

    invoke-virtual {v13, v7, v8, v14, v4}, Lcom/xingbook/ui/ad;->layout(IIII)V

    move-object/from16 v0, p0

    iget-object v8, v0, Lcom/xingbook/park/activity/OpenBookAct;->d:Lcom/xingbook/ui/ad;

    invoke-virtual {v12, v8}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    new-instance v8, Lcom/xingbook/ui/ad;

    move-object/from16 v0, p0

    invoke-direct {v8, v0}, Lcom/xingbook/ui/ad;-><init>(Landroid/content/Context;)V

    move-object/from16 v0, p0

    iput-object v8, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    move-object/from16 v0, p0

    iget-object v8, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    move-object/from16 v0, p0

    invoke-virtual {v8, v0}, Lcom/xingbook/ui/ad;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    move-object/from16 v0, p0

    iget-object v8, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const/4 v11, 0x1

    invoke-virtual {v8, v11}, Lcom/xingbook/ui/ad;->setId(I)V

    move-object/from16 v0, p0

    iget-object v8, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const-string v11, "\u53d6\u6d88"

    iput-object v11, v8, Lcom/xingbook/ui/ad;->a:Ljava/lang/String;

    move-object/from16 v0, p0

    iget-object v8, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const/high16 v11, 0x4238

    mul-float/2addr v1, v11

    iput v1, v8, Lcom/xingbook/ui/ad;->c:F

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const/4 v8, -0x1

    iput v8, v1, Lcom/xingbook/ui/ad;->b:I

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const/16 v8, 0x11

    iput v8, v1, Lcom/xingbook/ui/ad;->d:I

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const/high16 v8, 0x4120

    iput v8, v1, Lcom/xingbook/ui/ad;->j:F

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const v8, -0x666667

    iput v8, v1, Lcom/xingbook/ui/ad;->i:I

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    const/4 v8, 0x0

    invoke-virtual {v1, v8}, Lcom/xingbook/ui/ad;->setClickable(Z)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    add-int v8, v7, v10

    add-int/2addr v2, v7

    sub-int/2addr v2, v10

    add-int v7, v4, v9

    invoke-virtual {v1, v8, v4, v2, v7}, Lcom/xingbook/ui/ad;->layout(IIII)V

    move-object/from16 v0, p0

    iget-object v1, v0, Lcom/xingbook/park/activity/OpenBookAct;->c:Lcom/xingbook/ui/ad;

    invoke-virtual {v12, v1}, Lcom/xingbook/ui/XbLayout;->addView(Landroid/view/View;)V

    move-object/from16 v0, p0

    invoke-virtual {v0, v12}, Lcom/xingbook/park/activity/OpenBookAct;->setContentView(Landroid/view/View;)V

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/activity/OpenBookAct;->getWindow()Landroid/view/Window;

    move-result-object v1

    const/16 v2, 0x400

    const/16 v4, 0x400

    invoke-virtual {v1, v2, v4}, Landroid/view/Window;->setFlags(II)V

    const/4 v2, -0x1

    const/4 v4, -0x1

    invoke-virtual {v1, v2, v4}, Landroid/view/Window;->setLayout(II)V

    invoke-virtual/range {p0 .. p0}, Lcom/xingbook/park/activity/OpenBookAct;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/c/n;->a(Landroid/content/Context;)Lcom/xingbook/c/n;

    move-result-object v4

    sget-object v7, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/park/activity/ar;

    move-object/from16 v2, p0

    invoke-direct/range {v1 .. v6}, Lcom/xingbook/park/activity/ar;-><init>(Lcom/xingbook/park/activity/OpenBookAct;ZLcom/xingbook/c/n;Landroid/content/Intent;Z)V

    invoke-interface {v7, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getKeyCode()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/OpenBookAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/park/activity/OpenBookAct;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
